package com.lagou.enums;

import java.util.Map;

/**
 * @author liuc
 * @date 2021/4/12
 * @description
 **/
public enum  MapperType {
    SELECT,
    DELETE,
    UPDATE,
    INSERT;

    public static MapperType match(String type){
        MapperType[] ms = MapperType.values();
        for (MapperType m : ms) {
            if(m.name().equalsIgnoreCase(type)){
                return m;
            }
        }
        //缺省
        return null;
    }
}
